home *** CD-ROM | disk | FTP | other *** search
- Path: conan.ids.net!scarney
- From: scarney@conan.ids.net (scarney)
- Newsgroups: comp.lang.c
- Subject: text file manipulation
- Date: 25 Jan 1996 03:20:39 GMT
- Organization: IDS World Network Internet Access Service, (401) 885-4243
- Message-ID: <4e6su7$6pu@paperboy.ids.net>
- NNTP-Posting-Host: conan.ids.net
-
-
- Another stupid question...
-
- I'm trying to write a little program to modify the /etc/passwd
- file...I'm curious how you take a line in a text file (like passwd) and
- change it. Does fwrite append, or if the file index is in the middle of
- the file will it overwrite whatever is there (i.e., do what I want to do
- with the file). If not, could you use the FILE pointer to change the data?
-
- Thanks.
-
- --Seth
-
-